//package com.anyou.mall.pla.controller;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.anyou.common.annotation.Log;
//import com.anyou.common.core.controller.BaseController;
//import com.anyou.common.core.domain.ApiResult;
//import com.anyou.common.enums.BusinessType;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import com.anyou.mall.pla.domain.PlaPartsBrand;
//import com.anyou.mall.pla.service.IPlaPartsBrandService;
//import com.anyou.common.utils.poi.ExcelUtil;
//import com.anyou.common.core.page.TableDataInfo;
//
///**
// * 配件品牌Controller
// *
// * @author ylj
// * @date 2022-03-18
// */
//@Api(tags = "配件品牌")
//@RestController
//@RequestMapping("/pla/partsBrand")
//public class PlaPartsBrandController extends BaseController
//{
//    @Autowired
//    private IPlaPartsBrandService plaPartsBrandService;
//
//    /**
//     * 查询配件品牌列表
//     */
//    @ApiOperation("查询配件品牌列表")
//    @PreAuthorize("@ss.hasPermi('pla:partsBrand:list')")
//    @GetMapping("/list")
//    public TableDataInfo<List<PlaPartsBrand>> list(PlaPartsBrand plaPartsBrand)
//    {
//        startPage();
//        List<PlaPartsBrand> list = plaPartsBrandService.selectPlaPartsBrandList(plaPartsBrand);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出配件品牌列表
//     */
//    @ApiOperation("导出配件品牌列表")
//    @PreAuthorize("@ss.hasPermi('pla:partsBrand:export')")
//    @Log(title = "配件品牌", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, PlaPartsBrand plaPartsBrand)
//    {
//        List<PlaPartsBrand> list = plaPartsBrandService.selectPlaPartsBrandList(plaPartsBrand);
//        ExcelUtil<PlaPartsBrand> util = new ExcelUtil<PlaPartsBrand>(PlaPartsBrand.class);
//        util.exportExcel(response, list, "配件品牌数据");
//    }
//
//    /**
//     * 获取配件品牌详细信息
//     */
//    @ApiOperation("获取配件品牌详细信息")
//    @PreAuthorize("@ss.hasPermi('pla:partsBrand:query')")
//    @GetMapping(value = "/{partsBrandId}")
//    public ApiResult<PlaPartsBrand> getInfo(@PathVariable("partsBrandId") Long partsBrandId)
//    {
//        return ApiResult.success(plaPartsBrandService.selectPlaPartsBrandByPartsBrandId(partsBrandId));
//    }
//
//    /**
//     * 新增配件品牌
//     */
//    @ApiOperation("新增配件品牌")
//    @PreAuthorize("@ss.hasPermi('pla:partsBrand:add')")
//    @Log(title = "配件品牌", businessType = BusinessType.INSERT)
//    @PostMapping
//    public ApiResult add(@RequestBody PlaPartsBrand plaPartsBrand)
//    {
//        return ApiResult.success(plaPartsBrandService.insertPlaPartsBrand(plaPartsBrand));
//    }
//
//    /**
//     * 修改配件品牌
//     */
//    @ApiOperation("修改配件品牌")
//    @PreAuthorize("@ss.hasPermi('pla:partsBrand:edit')")
//    @Log(title = "配件品牌", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public ApiResult edit(@RequestBody PlaPartsBrand plaPartsBrand)
//    {
//        return ApiResult.success(plaPartsBrandService.updatePlaPartsBrand(plaPartsBrand));
//    }
//
//    /**
//     * 删除配件品牌
//     */
//    @ApiOperation("删除配件品牌")
//    @PreAuthorize("@ss.hasPermi('pla:partsBrand:remove')")
//    @Log(title = "配件品牌", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{partsBrandIds}")
//    public ApiResult remove(@PathVariable Long[] partsBrandIds)
//    {
//        return ApiResult.success(plaPartsBrandService.deletePlaPartsBrandByPartsBrandIds(partsBrandIds));
//    }
//
//
//    @ApiOperation("配件品牌下拉列表")
//    @GetMapping("/getAllList")
//    public ApiResult<List<PlaPartsBrand>> getAllList()
//    {
//        return plaPartsBrandService.getAllList();
//    }
//}
